<script type="text/javascript">
$('table th input:checkbox').on('click' , function(){
	var that = this;
	$(this).closest('table').find('tr > td:first-child input:checkbox')
	.each(function(){
		this.checked = that.checked;
		$(this).closest('tr').toggleClass('selected');
	});
});
function checkSelect(){
	var result = false;
	$('table').find('tr > td:first-child input:checkbox').each(function(){
		if(this.checked){
			result = true;
		}
	});
	return result;
}
//上传图片
$("#uploadModal").on("hidden.bs.modal", function() {
    $(this).removeData("bs.modal");
});
function uploadClose(){
	$("#uploadModal").modal('hide');
}
//用户选择
$("#staffModal").on("hidden.bs.modal", function() {
    $(this).removeData("bs.modal");
});
function staffClose(){
	$("#staffModal").modal('hide');
}
function showLoading(text){
	$("#loadHtml").html(text);
	$("#loadModal").modal('show');
}
function hideLoading(){
	$("#loadModal").modal('hide');
}
</script>
</body>
</html>
